home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Czytniki RSS / RSS Bandit 1.3.0.42 / RssBandit Installer.msi / _172FF5180BC61D3C6D240F14338A23AA / _A29FA14988AD4892BB91C50D54208284 < prev    next >
Text File  |  2004-12-12  |  13KB  |  358 lines

  1.         <xsl:stylesheet version='1.0' 
  2.                 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  3.                 xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
  4.                 xmlns:xhtml='http://www.w3.org/1999/xhtml'
  5.                 xmlns:slash='http://purl.org/rss/1.0/modules/slash/'
  6.                 xmlns:dc='http://purl.org/dc/elements/1.1/' 
  7.                 exclude-result-prefixes='content slash dc'>
  8.           
  9.           <xsl:output method='xml' indent='yes' /> 
  10.  
  11.  
  12.              <!-- channel group newspaper -->
  13.           <xsl:template match="newspaper[@type='group']">
  14.             <html>
  15.               <head>
  16.             <title><xsl:value-of select='title'/></title>
  17.             <!-- <base href="{//channel/link}" /> -->
  18.             <style><![CDATA[
  19.             body        { background:#000000;font-family:Verdana;Arial;color:#00ff00; font-size:11pt; margin:0pt; padding:0pt; }
  20.             .headTable {
  21.             font-family:"Courier New", Courier, mono;
  22.             Arial;
  23.             color:#00FF00;
  24.             cell-padding:2pt;
  25.             background:#000000;
  26.             width:100%;
  27.             height:30px;
  28.             border-top:1px solid #00FF00;
  29.             border-bottom:1px solid #00FF00;
  30.             border-right-width: 1px;
  31.             border-left-width: 1px;
  32.             border-right-style: solid;
  33.             border-left-style: solid;
  34.             border-right-color: #00FF00;
  35.             border-left-color: #00FF00;
  36.             }
  37.             .title        {
  38.             font-size:9pt;
  39.             font-weight: normal;
  40.             }
  41.             .date        { font-size:9pt; }
  42.             div.content {
  43.             font-family:"Courier New", Courier, mono;
  44.             font-size:10pt;
  45.             margin:10pt;
  46.             padding:5pt;
  47.             color: #00FF00;
  48.             background-color: #000000;
  49.             }
  50.             td.title a:link      { color:#00CCFF;text-decoration:none;font-weight:normal; }
  51.             td.title a:visited   { color:#00CCFF;text-decoration:none; }
  52.             td.title a:hover         { color:#0000FF;text-decoration:underline;font-weight:normal; }
  53.             a:link      { color:#00CCFF;text-decoration:none;font-weight:normal; }
  54.             a:visited   {
  55.             color:#00CCFF;
  56.             text-decoration:none;
  57.             }
  58.             a:hover        { color:#FFFFFF;text-decoration:underline;font-weight:normal; }
  59.             ]]></style>
  60.             <style type="text/css">
  61.               <!--
  62.               .lightBright {
  63.               background-color: #00FF00;
  64.               font-size: 9px;
  65.               color: #00FF00;
  66.               height: 10px;
  67.               width: 10px;
  68.               }
  69.               .lightOff {
  70.               font-size: 9px;
  71.               background-color: #000000;
  72.               color: #000000;
  73.               height: 10px;
  74.               width: 10px;
  75.               }
  76.               -->
  77.             </style>
  78.               </head>
  79.               <body>        
  80.             <xsl:for-each select="//channel">
  81.               <center><a href="{current()/link}"><xsl:value-of select="current()/title" /></a></center>
  82.               <xsl:for-each select="current()//item">
  83.             <table class="headTable">
  84.               <tr> 
  85.                 <td class='title' width='65%'>
  86.                   <strong>Author:</strong><xsl:text disable-output-escaping='yes'>&nbsp;&nbsp;&nbsp;</xsl:text>
  87.                   <xsl:choose>
  88.                 <xsl:when test='current()/author'>
  89.                   <xsl:value-of select='current()/author'/>
  90.                 </xsl:when>
  91.                 <xsl:when test='current()/dc:creator'>
  92.                   <xsl:value-of select='current()/dc:creator'/>
  93.                 </xsl:when>    
  94.                 </xsl:choose><br />
  95.                 <strong>Category:</strong><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text><xsl:value-of select='current()/category'/> 
  96.                 <br/>
  97.                 <strong>Subject:</strong><xsl:text disable-output-escaping='yes'>&nbsp;&nbsp;</xsl:text><xsl:value-of disable-output-escaping='yes' select='current()/title' />
  98.                   </td>
  99.                   <td class='date' width='35%' valign='bottom' align='right'><b><xsl:value-of select='current()/pubDate' /></b></td>
  100.                 </tr>
  101.               </table>
  102.               <div class='content'>
  103.                 <xsl:choose>
  104.                   <xsl:when test='current()/xhtml:body'>
  105.                 <xsl:copy-of select='current()/xhtml:body'/>
  106.                   </xsl:when>
  107.                   <xsl:when test='current()/content:encoded'>
  108.                 <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/>
  109.                   </xsl:when>
  110.                   <xsl:otherwise>
  111.                 <xsl:value-of disable-output-escaping='yes' select='current()/description'/>
  112.                   </xsl:otherwise>
  113.                 </xsl:choose>
  114.                 <br/><br/>
  115.                 <a href='{current()/link}'>Read on...</a> <xsl:choose>
  116.                 <xsl:when test='current()/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  117.                 <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  118.                 <xsl:value-of select='current()/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text></xsl:when>
  119.                 <xsl:when test='current()/slash:comments'><xsl:value-of select='current()/slash:comments'/> Comments...</xsl:when>  
  120.               </xsl:choose>
  121.             </div>
  122.  
  123.             
  124.             <p><xsl:text disable-output-escaping='yes'></xsl:text></p>
  125.               </xsl:for-each>
  126.             </xsl:for-each>
  127.             </body></html>
  128.               </xsl:template>
  129.  
  130.  
  131.             <!-- channel newspaper -->
  132.           <xsl:template match="newspaper[@type='channel']">
  133.             <html>
  134.               <head>
  135.             <title><xsl:value-of select='//channel/title'/></title>
  136.             <base href="{//channel/link}" />
  137.             <style><![CDATA[
  138.             body        { background:#000000;font-family:Verdana;Arial;color:#00ff00; font-size:11pt; margin:0pt; padding:0pt; }
  139.             .headTable {
  140.             font-family:"Courier New", Courier, mono;
  141.             Arial;
  142.             color:#00FF00;
  143.             cell-padding:2pt;
  144.             background:#000000;
  145.             width:100%;
  146.             height:30px;
  147.             border-top:1px solid #00FF00;
  148.             border-bottom:1px solid #00FF00;
  149.             border-right-width: 1px;
  150.             border-left-width: 1px;
  151.             border-right-style: solid;
  152.             border-left-style: solid;
  153.             border-right-color: #00FF00;
  154.             border-left-color: #00FF00;
  155.             }
  156.             .title        {
  157.             font-size:9pt;
  158.             font-weight: normal;
  159.             }
  160.             .date        { font-size:9pt; }
  161.             div.content {
  162.             font-family:"Courier New", Courier, mono;
  163.             font-size:10pt;
  164.             margin:10pt;
  165.             padding:5pt;
  166.             color: #00FF00;
  167.             background-color: #000000;
  168.             }
  169.             td.title a:link      { color:#00CCFF;text-decoration:none;font-weight:normal; }
  170.             td.title a:visited   { color:#00CCFF;text-decoration:none; }
  171.             td.title a:hover         { color:#0000FF;text-decoration:underline;font-weight:normal; }
  172.             a:link      { color:#00CCFF;text-decoration:none;font-weight:normal; }
  173.             a:visited   {
  174.             color:#00CCFF;
  175.             text-decoration:none;
  176.             }
  177.             a:hover        { color:#FFFFFF;text-decoration:underline;font-weight:normal; }
  178.             ]]></style>
  179.             <style type="text/css">
  180.               <!--
  181.               .lightBright {
  182.               background-color: #00FF00;
  183.               font-size: 9px;
  184.               color: #00FF00;
  185.               height: 10px;
  186.               width: 10px;
  187.               }
  188.               .lightOff {
  189.               font-size: 9px;
  190.               background-color: #000000;
  191.               color: #000000;
  192.               height: 10px;
  193.               width: 10px;
  194.               }
  195.               -->
  196.             </style>
  197.               </head>
  198.               <body>        
  199.             <xsl:for-each select="//item">
  200.             <table class="headTable">
  201.               <tr> 
  202.                 <td class='title' width='65%'>
  203.                   <strong>Author:</strong><xsl:text disable-output-escaping='yes'>&nbsp;&nbsp;&nbsp;</xsl:text>
  204.                   <xsl:choose>
  205.                 <xsl:when test='current()/author'>
  206.                   <xsl:value-of select='current()/author'/>
  207.                 </xsl:when>
  208.                 <xsl:when test='current()/dc:creator'>
  209.                   <xsl:value-of select='current()/dc:creator'/>
  210.                 </xsl:when>    
  211.                 </xsl:choose><br />
  212.                 <strong>Category:</strong><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text><xsl:value-of select='current()/category'/> 
  213.                 <br/>
  214.                 <strong>Subject:</strong><xsl:text disable-output-escaping='yes'>&nbsp;&nbsp;</xsl:text><xsl:value-of disable-output-escaping='yes' select='current()/title' />
  215.                   </td>
  216.                   <td class='date' width='35%' valign='bottom' align='right'><b><xsl:value-of select='current()/pubDate' /></b></td>
  217.                 </tr>
  218.               </table>
  219.               <div class='content'>
  220.                 <xsl:choose>
  221.                   <xsl:when test='current()/xhtml:body'>
  222.                 <xsl:copy-of select='current()/xhtml:body'/>
  223.                   </xsl:when>
  224.                   <xsl:when test='current()/content:encoded'>
  225.                 <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/>
  226.                   </xsl:when>
  227.                   <xsl:otherwise>
  228.                 <xsl:value-of disable-output-escaping='yes' select='current()/description'/>
  229.                   </xsl:otherwise>
  230.                 </xsl:choose>
  231.                 <br/><br/>
  232.                 <a href='{current()/link}'>Read on...</a> <xsl:choose>
  233.                 <xsl:when test='current()/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  234.                 <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  235.                 <xsl:value-of select='current()/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text></xsl:when>
  236.                 <xsl:when test='current()/slash:comments'><xsl:value-of select='current()/slash:comments'/> Comments...</xsl:when>  
  237.               </xsl:choose>
  238.             </div>
  239.  
  240.             
  241.             <p><xsl:text disable-output-escaping='yes'></xsl:text></p>
  242.             </xsl:for-each>
  243.             </body></html>
  244.               </xsl:template>
  245.  
  246.           <!-- single news item -->
  247.           <xsl:template match="newspaper[@type='newsitem']">
  248.             <html>
  249.               <head>
  250.             <title><xsl:value-of select='//item/title'/></title>
  251.             <base href="{//item/link}" />
  252.             <style><![CDATA[
  253.             body        { background:#000000;font-family:Verdana;Arial;color:#00ff00; font-size:11pt; margin:0pt; padding:0pt; }
  254.             .headTable {
  255.             font-family:"Courier New", Courier, mono;
  256.             Arial;
  257.             color:#00FF00;
  258.             cell-padding:2pt;
  259.             background:#000000;
  260.             width:100%;
  261.             height:30px;
  262.             border-top:1px solid #00FF00;
  263.             border-bottom:1px solid #00FF00;
  264.             border-right-width: 1px;
  265.             border-left-width: 1px;
  266.             border-right-style: solid;
  267.             border-left-style: solid;
  268.             border-right-color: #00FF00;
  269.             border-left-color: #00FF00;
  270.             }
  271.             .title        {
  272.             font-size:9pt;
  273.             font-weight: normal;
  274.             }
  275.             .date        { font-size:9pt; }
  276.             div.content {
  277.             font-family:"Courier New", Courier, mono;
  278.             font-size:10pt;
  279.             margin:10pt;
  280.             padding:5pt;
  281.             color: #00FF00;
  282.             background-color: #000000;
  283.             }
  284.             td.title a:link      { color:#00CCFF;text-decoration:none;font-weight:normal; }
  285.             td.title a:visited   { color:#00CCFF;text-decoration:none; }
  286.             td.title a:hover         { color:#0000FF;text-decoration:underline;font-weight:normal; }
  287.             a:link      { color:#00CCFF;text-decoration:none;font-weight:normal; }
  288.             a:visited   {
  289.             color:#00CCFF;
  290.             text-decoration:none;
  291.             }
  292.             a:hover        { color:#FFFFFF;text-decoration:underline;font-weight:normal; }
  293.             ]]></style>
  294.             <style type="text/css">
  295.               <!--
  296.               .lightBright {
  297.               background-color: #00FF00;
  298.               font-size: 9px;
  299.               color: #00FF00;
  300.               height: 10px;
  301.               width: 10px;
  302.               }
  303.               .lightOff {
  304.               font-size: 9px;
  305.               background-color: #000000;
  306.               color: #000000;
  307.               height: 10px;
  308.               width: 10px;
  309.               }
  310.               -->
  311.             </style>
  312.               </head>
  313.               <body>
  314.             <table class="headTable">
  315.               <tr> 
  316.                 <td class='title' width='65%'>
  317.                   <strong>Author:</strong><xsl:text disable-output-escaping='yes'>&nbsp;&nbsp;&nbsp;</xsl:text>
  318.                   <xsl:choose>
  319.                 <xsl:when test='//item/author'>
  320.                   <xsl:value-of select='//item/author'/>
  321.                 </xsl:when>
  322.                 <xsl:when test='//item/dc:creator'>
  323.                   <xsl:value-of select='//item/dc:creator'/>
  324.                 </xsl:when>    
  325.                 </xsl:choose><br />
  326.                 <strong>Category:</strong><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text><xsl:value-of select='//item/category'/> 
  327.                 <br/>
  328.                 <strong>Subject:</strong><xsl:text disable-output-escaping='yes'>&nbsp;&nbsp;</xsl:text><xsl:value-of disable-output-escaping='yes' select='//item/title' />
  329.                   </td>
  330.                   <td class='date' width='35%' valign='bottom' align='right'><b><xsl:value-of select='//item/pubDate' /></b></td>
  331.                 </tr>
  332.               </table>
  333.               <div class='content'>
  334.                 <xsl:choose>
  335.                   <xsl:when test='//item/xhtml:body'>
  336.                 <xsl:copy-of select='//item/xhtml:body'/>
  337.                   </xsl:when>
  338.                   <xsl:when test='//item/content:encoded'>
  339.                 <xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/>
  340.                   </xsl:when>
  341.                   <xsl:otherwise>
  342.                 <xsl:value-of disable-output-escaping='yes' select='//item/description'/>
  343.                   </xsl:otherwise>
  344.                 </xsl:choose>
  345.                 <br/><br/>
  346.                 <a href='{//item/link}'>Read on...</a> <xsl:choose>
  347.                 <xsl:when test='//item/comments'> <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> 
  348.                 <xsl:text disable-output-escaping='yes'><a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='//item/comments'/><xsl:text disable-output-escaping='yes'>'></xsl:text> 
  349.                 <xsl:value-of select='//item/slash:comments'/> Comments... <xsl:text disable-output-escaping='yes'></a></xsl:text></xsl:when>
  350.                 <xsl:when test='//item/slash:comments'><xsl:value-of select='//item/slash:comments'/> Comments...</xsl:when>  
  351.               </xsl:choose>
  352.             </div>
  353.  
  354.             
  355.             <p><xsl:text disable-output-escaping='yes'></xsl:text></p>
  356.             </body></html>
  357.               </xsl:template>
  358.             </xsl:stylesheet>